package com.yjd.comm.enums;

/**
 * <b>description</b>：认证证件类型 <br>
 * <b>time</b>：2014-12-26上午10:55:29 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public enum UserIdcardTypeEnum {
	SFZ(1, "身份证"),
	FDL(2, "非大陆身份认证"),
	HZ(3,"护照"),
	GATXZ(4,"港澳通行证"),
	KGZ(5,"军官证"),
	QT(6,"其他");

	private Integer value;
	private String description;

	private UserIdcardTypeEnum(Integer value, String description) {
		this.value = value;
		this.description = description;
	}

	public Integer getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}

	public static UserIdcardTypeEnum get(Integer value) {
		UserIdcardTypeEnum[] enums = UserIdcardTypeEnum.values();
		for (UserIdcardTypeEnum enum1 : enums) {
			if (enum1.getValue().equals(value)) {
				return enum1;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		UserIdcardTypeEnum enum1 = UserIdcardTypeEnum.get(value);
		return enum1 != null ? enum1.getDescription() : null;
	}
}
